import request from '@/utils/request'

// 查询案件图片列表
export function listCasepic(query) {
  return request({
    url: '/system/casepic/list',
    method: 'get',
    params: query
  })
}

// 查询案件图片详细
export function getCasepic(id) {
  return request({
    url: '/system/casepic/' + id,
    method: 'get'
  })
}

// 新增案件图片
export function addCasepic(data) {
  return request({
    url: '/system/casepic',
    method: 'post',
    data: data
  })
}

// 修改案件图片
export function updateCasepic(data) {
  return request({
    url: '/system/casepic',
    method: 'put',
    data: data
  })
}

// 删除案件图片
export function delCasepic(id) {
  return request({
    url: '/system/casepic/' + id,
    method: 'delete'
  })
}

// 导出案件图片
export function exportCasepic(query) {
  return request({
    url: '/system/casepic/export',
    method: 'get',
    params: query
  })
}